import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

double windowWidth =
    MediaQueryData.fromView(WidgetsBinding.instance.window).size.width;

double windowHeight =
    MediaQueryData.fromView(WidgetsBinding.instance.window).size.height;

bool isWindows() => !kIsWeb && Platform.isWindows;

bool isMobile() => isAndroid() || isIOS();

bool isAndroid() => !kIsWeb && Platform.isAndroid;

bool isIOS() => !kIsWeb && Platform.isIOS;

bool isWeb() => kIsWeb;

bool isLand() => windowWidth > windowHeight;
